package cn.yunhe.biz;

import cn.yunhe.bean.SceType;
import cn.yunhe.dao.SceTypeMapper;
import cn.yunhe.util.SqlSessionFactoryUtil;
import org.apache.ibatis.session.SqlSession;

import java.util.List;
public class SceTypeService {
    private static SqlSession session = SqlSessionFactoryUtil.getSqlSession();
    private static SceTypeMapper sceTypeMapper = session.getMapper(SceTypeMapper.class);
    /**
     * 得到所有景区类型列表供后台添加景区时使用
     * @return
     */
    public static List<SceType> getAllSceType(){
        return sceTypeMapper.getAllSceType();
    }
}
